package com.ywk.pattern._15_abstractfactory._15_9;

import com.ywk.pattern._15_abstractfactory._15_4.IUser;
import com.ywk.pattern._15_abstractfactory._15_4.User;

public class Main {
    public static void main(String[] args) {
        DataAccess.db = PropertiesUtil.getProperty("DB");
        try {
            final IUser iUser = DataAccess.createUser();
            User user = new User();
            iUser.insert(user);
            iUser.GetUser(2);
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        } catch (InstantiationException e) {
            e.printStackTrace();
        }
    }
}
